package com.gitee.feizns.dynamic.convert;

/**
 * <b>转换器的模板类</b>
 * @see Converter
 * @author feizns
 * @since 2022/11/17
 */
public abstract class AbstractConverter<S, R> implements Converter<S, R> {

    /**
     * 转换器优先级
     */
    private final int priority;

    public AbstractConverter() {
        this(Integer.MAX_VALUE);
    }

    public AbstractConverter(int priority) {
        this.priority = priority;
    }

    @Override
    public int priority() {
        return priority;
    }

}
